const {mongoose ,Schema} = require('../../daoconfig');



//#region  用户
const userAndKemuScore_schema = new Schema({
	userid:{type:Schema.Types.ObjectId,ref: 'user'},
  kemuLogs:[
    {
      kemuid:{type:Schema.Types.ObjectId,ref: 'kemu'},
      	// 熟练度
      kemuScore:{ type: Number, default: 0},
      pointLogs:[
        {
          pointID:{type:Schema.Types.ObjectId,ref: 'point'},
          pointScore:{ type: Number, default: 0},
        }
      ],
      	// 赛季
	    stage:{type:Schema.Types.ObjectId,ref: 'stage'},
    }
  ],
  // 用户的赛季得分
  professionScore: {
    stageID: {type: Schema.Types.ObjectId, ref: 'stage'},
    // 得分段位,评估段位的
    score: {type: Number, default: 0},
  }
  

});
//#endregion

module.exports={
  userAndKemuScore_schema
}
